import { useResponseSuccess } from '~/utils/response';

export default eventHandler((event) => {
  const bookingId = getRouterParam(event, 'id');

  // 模拟开始服务
  const result = {
    id: bookingId,
    status: 'IN_PROGRESS',
    updateTime: new Date().toISOString(),
    message: '服务已开始',
  };

  return useResponseSuccess(result);
});
